package com.qy.securitydemo.dal;

import com.qy.securitydemo.model.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author HXB
 * @Title:
 * @Package
 * @Description:
 * @date 2019-11-0811:23
 */
@Mapper
public interface UserRoleMapper {
    @Select("select * from  sys_role where userId=#{id}")
    List<SysRole> getRoleByUser(Long id);
}
